<div ms-controller="booksApplyAnalyze" class="books-apply-analyze">
  <p class="path">您现在的位置为：<span ms-text="@breadcrumb">固办-领用单管理</span></p>
  <form class="form-inline" onsubmit="return false;">
    <div class="search-group">
      <label>起始时间：<input id="startTime" type="text"
                               class="form-control"
                               ms-duplex="@startTime" readonly></label>
      <label>结束时间：<input id="endTime" type="text"
                               class="form-control"
                               ms-duplex="@endTime" readonly></label>
      <!-- 单一科室所有账册查询 -->
      <label ms-if="@reportType==='booksapplyanalyze'">选择科室：
                <input type="text" class="form-control"
                       ms-duplex="@deptAccountName"
                       ms-keydown="@chooseDept($event)"
                       ms-attr="{disabled:!@isProviderDept}"></label>
      <!-- 单一科室所有账册查询 -->

      <!-- 病区领用单查询 本地 -->
      <label ms-if="@reportType==='wardapplyanalyze'">选择账册：
                <input type="text" class="form-control"
                       ms-duplex="@goodsBookName"
                       ms-keydown="@chooseGoodsBook($event)"></label>
      <!-- 病区领用单查询 本地 -->

      <!-- 领用明细查询 -->
      <label ms-if="@reportType==='packagedrawquery'">大类：
                <select name="" class="form-control"
                        ms-duplex="@packageBigID">
                    <option value="%">所有大类</option>
                    <option ms-for="el in @packageBigList"
                            ms-attr="{value:el.PackageBigCatID}"
                            ms-text="el.PackageBigCatName"></option>
                </select>
            </label>
      <label ms-if="@reportType==='packagedrawquery'">科室：
                <input type="text" class="form-control"
                       ms-duplex="@deptAccountName"
                       ms-keydown="@chooseDept($event)">
            </label>
      <label ms-if="@reportType==='packagedrawquery'">物品名称：
                <input type="text" class="form-control"
                       ms-duplex="@goodsName"
                       ms-keydown="@chooseGoods($event)">
            </label>
      <label ms-if="@reportType==='packagedrawquery'">货号：
                <input type="text" class="form-control"
                       ms-duplex="@goodsNo">
            </label>
      <!-- 领用明细查询 -->

      <button class="btn btn-sm btn-primary" ms-click="@search">查询</button>
      <button class="btn btn-sm btn-primary" ms-click="@print">打印</button>
      <button type="button" class="btn btn-info btn-sm last" ms-click="@back">返回</button>
    </div>
  </form>
  <div class='report-contioner'>
    <div id="reportTools" class="report-tools">
      <div class="paging">
        <span class="icon-step-backward " title="第一页" ms-click="@jumpPageing(0)" ms-class="@firstPages"></span>
        <span class="icon-caret-left" title="上一页" ms-click="@jumpPageing(1)" ms-class="@prePages"></span>
        <label><input class="pages" type="text" placeholder=""
                              ms-duplex="@pages"
                              ms-keydown="@handlePagesInput">/{{@counts}}</label>
        <span class="icon-caret-right" title="下一页" ms-click="@jumpPageing(2)" ms-class="@nextPages"></span>
        <span class="icon-step-forward" title="最后一页" ms-click="@jumpPageing(3)" ms-class="@lastPages"></span>

        <span class="split">丨</span>
        <span class="icon-reply" title="返回上级报表" ms-click="@backParentReport" ms-class="@backPreReport"></span>
        <span class="split">丨</span>
        <label>
                    <select>
                        <option value="">Excel</option>
                    </select>
                </label>
        <label><img src="img/index/u3017.png" alt="导出" title="导出" class="export"
                            ms-click="@exportExcel"></label>
      </div>
    </div>
    <div id="reportContent" class="report-content">
      <h4 ms-if="@goods.length!==0" id="reportTitle" class="title">
        {{@title}}</h4>
      ${table}
      <div id="tableFooter"></div>
      <div class="table-placeholder" id="tablePlaceholder">
        <table class="table table-hover table-bordered table-condensed">
          <thead>

          </thead>
        </table>
      </div>
    </div>
  </div>
</div>